

class Test_A():
    def __init__(self,a,b):
        self.a='a属性'
        self.b='b属性'

    def weight(self,ww):
        print(f'我的体重是：{ww}kg')

    def hight(self,hh):
        print(f'我的身高是:{hh}cm')



class Test_B(Test_A):
    def __init__(self,qq,ww):
        super(Test_B, self).__init__(qq,ww)



    def test_weight(self,ww):
        # super(Test_B, self).weight(ww)
        self.weight(ww)

    def test_hight(self,hh):
        # super(Test_B, self).hight(hh)
        self.hight(hh)


# A=Test_A(1,2)
# A.weight(12)
# A.hight(172)
# print(A.b)

B=Test_B(10,9)
print(B.b)
B.test_weight(65)
B.test_hight(175)